package org.september.pisces.task.service;

import org.september.pisces.task.entity.SimpleTask;
import org.september.smartdao.CommonDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SimpleTaskLogService {

	@Autowired
	private CommonDao dao;
	
	public void addSuccessLog(SimpleTask st) {
//		TaskRunningLog log = new TaskRunningLog();
//		log.setExecuteTime(new Date());
//		log.setResult("success");
//		log.setTaskId(st.getId());
//		dao.save(log);
	}
	
	public void addFailLog(SimpleTask st) {
//		TaskRunningLog log = new TaskRunningLog();
//		log.setExecuteTime(new Date());
//		log.setResult("failed");
//		log.setTaskId(st.getId());
//		dao.save(log);
	}
}
